package com.ruoyi.project.student.service.impl;

import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.student.mapper.ClassMapper;
import com.ruoyi.project.student.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.student.domain.Class;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {

    @Autowired
    private ClassMapper classMapper;

    /**
     * 根据条件分页查询学生列表
     *
     * @param student 学生信息
     * @return 学生信息集合信息
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<Class> getAllClassList(Class classParam)
    {
        return classMapper.getAllClassList(classParam);
    }
}
